Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 4 - Mappers / Mappers Reference
Constants and Data Types


The TRegisterReply Structure

You use the TRegisterReply structure to store information returned by the OTRegisterName function (page 4-21).

The TRegisterReply structure is defined by the TRegisterReply data type.

struct TRegisterReply
   {  TNetbuf  addr;
      OTNameID nameid;
   };
   typedef struct TRegisterReply TRegisterReply;
Field descriptions

addr
A TNetbuf structure that you allocate to hold the location and size of a buffer containing the actual address of the entity whose name you have just registered. This information is passed back to you when the OTRegisterName function returns. You must allocate a buffer, set the addr.buf field to point to it, and set the addr.maxlen field to the maximum size the address could take up.
nameid
A unique identifier passed to you when the OTRegisterName function returns. You can use this identifier when you call the OTDeleteNameByID function to delete the name.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996